package com.lyy.extend_study.improve_;


/**
 * @Author:  GZQ
 * @date:  2024/11/13 21:33
 */

public class Extends01 {

    public static void main(String[] args) {
        Pupil pupil = new Pupil();
        pupil.name = "小明";
        pupil.age = 12;
        pupil.testing();
        pupil.setScore(60);
        pupil.showInfo();

        System.out.println("======================");

        Graduate graduate = new Graduate();
        graduate.name = "小红";
        graduate.age = 22;
        graduate.testing();
        graduate.setScore(100);
        graduate.showInfo();

    }
}
